<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>订单列表</title>
    <script type="text/javascript" src="jquery-3.5.1.min.js"></script>
</head>
<body>
<h1>订单列表：</h1>

<table border="1">
    <tr>
        <th>订单编号</th>
        <th>用户名</th>
        <th>商品名称</th>
        <th>数量</th>
        <th>价钱</th>
        <th>支付状态</th>
        <th>下单时间</th>
        <th>操作</th>
    </tr>
    <tr  th:each="seckillOrderInfo : ${seckillOrderInfos}">
        <td th:text="${seckillOrderInfo.seckillOrderId}"></td>
        <td th:text="${seckillOrderInfo.username}"></td>
        <td th:text="${seckillOrderInfo.name}"></td>
        <th th:text="${seckillOrderInfo.seckillNumber}"></th>
        <th th:text="${seckillOrderInfo.seckillPrice}"></th>


        <!--<th th:text="${seckillOrderInfo.payStatus}"></th>-->
        <th th:if="${seckillOrderInfo.payStatus} == 0" style="color: #007b38;">待支付</th>
        <th th:if="${seckillOrderInfo.payStatus} == 2" style="color: red;">支付超时</th>
        <th th:if="${seckillOrderInfo.payStatus} == 1" style="color: #2105ff;">支付成功</th>

        <th th:text="${seckillOrderInfo.createTime}"></th>
        <th th:if="${seckillOrderInfo.payStatus} == 0" ><a href="javascript:pay(3)">支付</a></th>
        <th ></th>
    </tr>
</table>
<a href="/index?userId=11">首页</a>
</body>
</html>


